package cn.jingzhuan.fm.mvp.contract

import cn.jingzhuan.fm.network.json.JsonResponse
import cn.jingzhuan.fm.pojo.FMAudioComment
import io.reactivex.Flowable

interface FMAudioCommentContract {

    interface Presenter {
        fun loadCommentList(audioId : String)
        fun refresh(audioId: String)
    }

    interface Model {
        fun commentList(page:Int,limit:Int,audioId: String) : Flowable<JsonResponse<List<FMAudioComment>>>
    }

    interface View {
        fun onRefreshed()
        fun onDataChange(data : List<FMAudioComment>,hasMore : Boolean)

    }


}